<el-container direction="vertical" class="demo-box">
  <el-header>
    <el-menu [model]="0" class="el-menu-demo" mode="horizontal"
             background-color="#545c64"
             active-text-color="#ffd04b"
             text-color="#fff">
      <el-menu-item index="0" to="/device">设备管理</el-menu-item>
      <el-menu-item index="1" to="/rule">规则管理</el-menu-item>
    </el-menu>
  </el-header>
  <el-main>
    <router-outlet></router-outlet>
  </el-main>
</el-container>
